import { propTypes } from '@/utils/propTypes';
import type { PropType } from 'vue';

export const basicProps = {
  types: {
    type: String as PropType<'success' | 'error' | 'waiting'>,
    default: 'success',
  },
  title: propTypes.string.def('提交成功'),
  content: propTypes.string.def('提交数据成功'),
  cancelText: propTypes.string.def('返回'),
  confirmOpenType: String as PropType<JSX.IntrinsicElements['button']['openType']>,
  confirmText: propTypes.string.def('确定'),
};
